<template>
	<view class="page"  :style="{minHeight:windowHeight+'px'}">
		<view class="about-item">
			<view class="title">{{about.article_title}}</view>
			<view class="about" v-html="about.article_content"></view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'10023',
				loadding: false,
				windowHeight: '',
				about:[],
			}
		},
		onLoad(e){
			uni.getSystemInfo({
				success: (res) => {
					this.windowHeight = res.windowHeight;
				}
			});
			if(e.select == 1){
				this.id = e.id
				this.getData();
			}
			this.getData();
		},
		methods: {
			/*获取数据*/
			getData() {
				let self = this;
				uni.showLoading({
					title: '加载中'
				});
				self._get('plus.article.article/detail', {
						article_id: self.id
					},
					function(res) {
						self.about = res.data.detail; 
						self.loadding = true;
						uni.hideLoading();
					});
			},
		}
	}
</script>

<style>
	.page{
		padding-top: 100rpx;
	}
	.about-item{
		text-align: center;
	}
	.title{
		font-size: 36rpx;
		font-weight: 800;
	}
.about{
		width: 94%;
		margin: 20rpx auto 0;
		font-size: 32rpx;
	}
</style>
